.pagination {
  display: flex;
  justify-content: center;
  list-style-type: none;
  gap: 4px;
  margin: 40px auto 100px;
  width: 228px;
  height: 24px;
  box-sizing: border-box;
}

@media screen and (max-width: 395px) {
  .pagination {
    margin: 40px auto 80px;
  }
}

.pagination.hidden_pagination {
  display: none;
}

.pagination li a {
  justify-content: center;
  display: flex;
  width: 27px;
  height: 24px;
  text-decoration: none;
  color: var(--input-text-color);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 22.4px;
}

.pagination .active {
  text-align: center;
  font-weight: 500;
  border-radius: 4px;
  color: var(--input-text-color);
  background-color: var(--pagination-activ-background-color);
}

.pagination .break-me {
  cursor: default;
}

.pagination .prev,
.pagination .next {
  margin: 0 16px;
}

.pagination .prev:hover,
.pagination .next:hover {
  background-color: var(--pagination-activ-background-color);
  border-radius: 4px;
}

.page:hover {
  border-bottom: var(--pagination-hover-strip);
}

ul {
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}
